package org.example.api.admin;

import org.example.R.R;
import org.example.entity.dto.AddAppealCollectDto;
import org.example.service.pc.AppealCollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;


@RestController
@RequestMapping("/api/admin/appeal_collect")
public class AppealCollectController {


    @Autowired
    private AppealCollectService appealCollectService;


    @PostMapping("/delete")
    public R delete(@RequestParam("id") Long id){
        return appealCollectService.delete(id);
    }

    @PostMapping("/over")
    public R over(@RequestParam("id") Long id){
        return appealCollectService.over(id);
    }

    @PostMapping("/list")
    public R list(){
        return appealCollectService.adminList();
    }




}
